#!/bin/bash
dladm show-link -p -o link | while IFS=: read link state; do 
	dladm delete-vnic $link
done
dladm show-etherstub -p -o link | while IFS=: read link; do 
	dladm delete-etherstub $link
done

